using System;
using System.Data;
using Future.DataAccess;

namespace Future.Entities
{
    [Serializable]
    public class xHeadEntity : Contract.BaseEntity
    {
        public override string TABLE_NAME { get { return "xHead"; } }
        public override string PK { get { return "HeadID_PK"; } }
        public override object PK_VALUE
        {
            get { return HeadID_PK; }
            set { HeadID_PK = int.Parse(value.ToString()); }
        }

        [DBColumnAttribue(true, false, true, false, true, DbType.Int32)]
        public int? HeadID_PK { get { return _HeadID_PK; } set { _HeadID_PK = value; SetState(); } }
        private int? _HeadID_PK;

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sName { get { return _sName; } set { _sName = value; SetState(); } }
        private string _sName;

        [DBColumnAttribue(true, true, false, true, true, DbType.Boolean)]
        public bool? iEnable { get { return _iEnable; } set { _iEnable = value; SetState(); } }
        private bool? _iEnable;

        [DBColumnAttribue(true, true, false, true, true, DbType.DateTime)]
        public DateTime? dDate { get { return _dDate; } set { _dDate = value; SetState(); } }
        private DateTime? _dDate;

        [DBColumnAttribue(true, true, false, true, true, DbType.Double)]
        public double? iMoney { get { return _iMoney; } set { _iMoney = value; SetState(); } }
        private double? _iMoney;

        private Type _ChildType = typeof(xDetailEntity);
        public override Type Child
        {
            get { return _ChildType; }
            set { _ChildType = value; }
        }
    }
}
